package com.wswy.wzcx.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.graphics.drawable.PaintDrawable;
import android.graphics.drawable.RotateDrawable;
import android.support.annotation.ColorRes;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;

/**
 * 左上角角标
 */
public class CardSignTextView extends AppCompatTextView {

  public CardSignTextView(Context context) {
    this(context,null);
  }

  public CardSignTextView(Context context, AttributeSet attrs) {
    this(context, attrs,0);
  }

  public CardSignTextView(Context context, AttributeSet attrs, int defStyleAttr) {
    super(context, attrs, defStyleAttr);
    init(context);
  }


  private @ColorRes int triangleBgColor;

  private void init(Context context){
    PaintDrawable paintDrawable = new PaintDrawable();

  }

  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

  }
}
